package com.java.zhuiyun.api.jielongidiomlevel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.java.zhuiyun.api.jielongidiomlevel.entity.JieLongIdiomLevel;
import com.java.zhuiyun.api.jielongidiomlevel.model.JieLongIdiomLevelModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName Mapper
 * @Description TODO 成语接龙关卡持久层 后台管理查询关卡、添加关卡更新状态、更新关卡信息、删除关卡、uni-app查询关卡
 * @Author 杨友朋
 * @Date 2023/9/13 9:01
 **/
@Mapper
public interface JieLongIdiomLevelMapper extends BaseMapper<JieLongIdiomLevel> {
    /**
    * @Author 杨友朋
    * @Description TODO 后台管理查询关卡
    * @Date 2023/9/13 10:48
    * @Return
    * @param
    */
    List<JieLongIdiomLevelModel> selectLevel(Integer id);

    /**
    * @Author 杨友朋
    * @Description TODO 添加关卡
    * @Date 2023/9/13 10:48
    * @Return
    * @param jieLongIdiomLevel
    */
    Integer insertLevel(JieLongIdiomLevel jieLongIdiomLevel);

    /**
    * @Author 杨友朋
    * @Description TODO 更新关卡信息
    * @Date 2023/10/12 11:07
    * @Return
    * @param jieLongIdiomLevel
    */
    Integer updateLevel(JieLongIdiomLevel jieLongIdiomLevel);

    /**
    * @Author 杨友朋
    * @Description TODO uni-app查询关卡
    * @Date 2023/10/12 11:08
    * @Return
    * @param
    */
    List<JieLongIdiomLevelModel> userSelectLevel();
}
